const userInfoCache = localStorage.userInfo ? JSON.parse(localStorage.userInfo) : {}

export const userInfo = () => userInfoCache
export const userId = () => userInfoCache.userId
export const logined = () => !!userInfoCache.userId

